home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 240 (DVD) / Issue 240 - February 2008 - DPCS0208DVD.ISO / Extras / NetObjects Fusion / NOF10.exe / data1.cab / FSI / lib / nof / dataobjects / tables / ecomm / ManufacturersTable.js < prev    next >
Encoding:
Text File  |  2007-04-11  |  891 b   |  24 lines

  1. function NOF_DataObjects_ManufacturersTable(){
  2.   this.__proto__ = NOF_DataObjects_ManufacturersTable.prototype;
  3.  
  4.   this.SUPER( NOF_TableTypes.NODELESS | NOF_TableTypes.ECOMM_CATALOG, "Manufacturers", "Id");
  5.   this.__constructor__ = NOF_DataObjects_ManufacturersTable;
  6. }
  7.  
  8. NOF_DataObjects_ManufacturersTable.inherits( NOF.DO.Table ); function NOF_DataObjects_ManufacturersTable_ProtoBuilder(){
  9.   var NOF_DataObjects_ManufacturersTable_DDL = new Array(
  10.     new NOF.DO.FieldInfo("Id", NOF.DO.FieldType.INTEGER, 0),
  11.     new NOF.DO.FieldInfo("Name", NOF.DO.FieldType.VARCHAR, 1) //is 255 enough?
  12.   );
  13.   
  14.   var method = NOF_DataObjects_ManufacturersTable.prototype;
  15.   
  16.   method.COL_ID   = 0;  
  17.   method.COL_NAME = 1;  
  18.   
  19.   method.getDDL = function getDDL(){
  20.     return  NOF_DataObjects_ManufacturersTable_DDL;
  21.   };   
  22.  
  23. NOF_DataObjects_ManufacturersTable_ProtoBuilder();